﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CooWork.Models
{
    public class Role
    {
        public string roleName { get; set; }
        public string description { get; set; }

        public void updateDesc()
        {
            if (!string.IsNullOrWhiteSpace(roleName) && !string.IsNullOrWhiteSpace(description))
            {
                DataProvider.ExecuteNonQuery("update aspnet_Roles set Description='" + description + "' where RoleName='" + roleName + "' ");
            }
        }
    }
}